import Vue from 'vue'
import VueResource from 'vue-resource'
Vue.use(VueResource)

const host = 'http://120.25.208.147:10808';
// /pms/1/stat/costFlowInfo?sFundType=2&t=1545980561154&token=admin'
const http = {
  get(url) {
    return Vue.http.get(host + url).then(res => {
      console.log(res)
    }, err => {
      // console.log(err)
    });
  },
  post(url, postBody) {
    return Vue.http.get(host + url).then(res => {
      // console.log(res)
    }, err => {
      // console.log(err)
    });
  }
}

export default http;
